import { createRouter, createWebHashHistory } from 'vue-router'
import Today from '@/views/today.vue'

const routes = [
  {
    path: '/',
    name: 'today',
    component: Today
  },
  {
    path: '/week',
    name: 'week',
    component: () => import('@/views/weekday.vue')
  },
  {
    path: '/month',
    name: 'month',
    component: () => import('@/views/month.vue')
  },
  {
    path: '/year',
    name: 'year',
    component: () => import('@/views/year.vue')
  },
  {
    path: '/tomorrow',
    name: 'tomorrow',
    component: () => import('@/views/tomorrow.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
